﻿<Window x:Class="LockCrypt.WinInputDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:lex="http://schemas.root-project.org/xaml/presentation"
    xmlns:l49="clr-namespace:Lime49;assembly=Lime49"
    l49:WindowService.EscapeClosesWindow="True"
    Title="InputDialog" Height="150" Width="300"
    SizeToContent="Height" ResizeMode="NoResize" 
    WindowStartupLocation="CenterOwner"
    Style="{StaticResource {x:Type Window}}" Icon="pack://application:,,,/Resources/LockCrypt.ico">
    <Grid Margin="6">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Image Grid.Row="0" Grid.RowSpan="2" x:Name="img" Width="48" Height="48" Margin="2" VerticalAlignment="Center" Source="pack://application:,,,/Resources/images/question_48.png" />
        <TextBlock Grid.Row="0" Grid.Column="1" x:Name="txtDisplayMessage" TextWrapping="Wrap" Text="Message" VerticalAlignment="Center" />
        
        <TextBox Grid.Row="1" Grid.Column="1" x:Name="txtInput" Margin="0,8" />
        <StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Name="btnOk" MinWidth="70" IsDefault="True" Click="btnOk_Click" Content="{lex:LocText LockCrypt.Core:Strings:Ok}"/>
            <Button Name="btnCancel" Margin="2,2,0,2" MinWidth="70" IsCancel="True" Content="{lex:LocText LockCrypt.Core:Strings:Cancel}"/>
        </StackPanel>
    </Grid>
</Window>
